<include file="Public/head" />
<link type="text/css" rel="stylesheet" href="{:get_style_cdnurl()}paimai/yunying/plugin/select2/select2.css" />
<script src="{:get_style_cdnurl()}paimai/yunying/plugin/select2/select2.js" type="text/javascript"></script>
<script src="{:get_style_cdnurl()}paimai/yunying/js/city.js"></script>
<style>
    #fail_type {
        -moz-appearance: none;
        background: rgba(0, 0, 0, 0) url("http://img1.isou365.cn/paimai/yunying/images/sanjiao.jpg") no-repeat scroll 130px 5px;
        border: 1px solid #d7d7d7;color: #666;float: left; height: 25px;line-height: 25px;margin-left: 24px;margin-right: 10px;text-align: center;width: 150px;}
    </style>
</head>
<include file="Public/common_header" />
<div class="mian">
    <include file="Public/sidebar" menu="cljc.jcdd"/>
    <div class="mianR">
        <div class="yuyue">
            <ul>
                <li onclick="window.location.href = '/DetectScheduling/index'">待分配</li>
                <li onclick="window.location.href = '/DetectScheduling/detect'">待检测</li>                    
                <li onclick="window.location.href = '/DetectScheduling/success'">检测成功</li>                    
                <li onclick="window.location.href = '/DetectScheduling/fail'" class="yuCurrent">检测失败</li>
                <li onclick="window.location.href = '/DetectScheduling/retention'">滞留</li>
            </ul>
        </div>
        <div class="yuSuo clearfix">
            <form id="searchFrom" class="clearfix">
                <input id="status" name="status" type="hidden" value="7"/>
                <span>按失败时间筛选：</span>
                <input type="text" id="start_time" name="start_time" value="{$params.start_time}" readonly placeholder="失败时间" /><em></em>
                <input type="text" id="end_time" name="end_time" value="{$params.end_time}" readonly placeholder="失败时间" />
                <select id="fail_type" name="fail_type" >
                    <option value="">请选择失败类型</option>
                    <option value="1">改约</option>
                    <option value="2">驳回</option>
                    <option value="3">流失</option>
                    <!--<option value="4">退单</option>-->
                </select>
                <input type="text" id="owner_id" name="owner_id" placeholder="车主ID/车主姓名/车主电话" value="{$params.owner_id}" class="suoDian" />
                <select id="location_area" name="location_area" class="branch_company">
                    <if condition="count($bc_city) gt 1">
                        <option value="">请选择所在地</option>
                    </if>
                    <volist name="bc_city" id="city">
                        <option value="{$key}">{$city}</option>
                    </volist>
                </select>
                <select name="checker_id" id="checker" style="width:162px;float:left;margin-left:10px;">
                    <option value=''>请选择评估师</option>
                     <volist name='checker' id='ce'>
                         <option value="{$ce.emp_id}">{$ce.real_name}</option>
                    </volist>
                </select>
            </form>
            <input style="margin-left: 96px;margin-top: 10px" type="button" onclick="fnSearch();" id="search" value="搜索" class="suoSou">
        </div>
        <div class="listBox" id="listBox">

        </div>
        <div class="clear"></div>
    </div>
</div>
</body>
<script type="text/javascript">
    $("#checker").select2();
    get_list();
    function get_list() {
        $.get("/DetectScheduling/fail_list", {"status": '7'}, function (data) {
            $("#listBox").html(data);
        }, "html");
    }

    function get_page(p) {
        var data = $("#searchFrom").serialize() + "&" + encodeURI("p=" + p);
        $.get("/DetectScheduling/fail_list", data, function (data) {
            $("#listBox").html(data);
        }, "html");
    }

    function fnSearch() {
        $.get("/DetectScheduling/fail_list", $("#searchFrom").serialize(), function (data) {
            $("#listBox").html(data);
        }, "html");
    }
</script>
</html>